<include file="Public:header" />
<div class="container">
  <div class="mainbody"> <include file="Public:scoreMenu" />
    <div class="rig_lm03">
      <div class="title" ><img src="{$Think.config.static_path}images/listicon.jpg" class="icon" >
        <h2>{$title}--二维码信息列表</h2>
        <form method="POST" action="" style="margin-left:100px;">
          <input type="text"  class="searcheTxt" placeholder="请输入订单号" name="keys" id="keys" value="<?php echo $_REQUEST['keys']?>">
          <button type="button" onclick="changeSelect()" class="btn btn-primary btn-sm"><span class="glyphicon glyphicon-search"></span> 搜索</button>
        </form>
      
      </div>
      <div class="detail">
        <div id="tabCot_product_1" class="tabCot" >
          <table cellspacing="0" cellpadding="0" width="100%" border="0" class="tabindex table-hover">
            <tbody>
              <tr>
              
                <th>创建人</th>
                <th>支付价格</th>
                <th>支付积分</th>
                <th>状态</th>
                <th>使用时间</th>
                <th>创建时间</th>
             
                
              </tr>
              <volist name="list" id="vo" key="key">
                <tr>
                  <td>{:getQrcodeByUid($vo['uid'])}</td>
                  <td>{$vo.price} </td>
                  <td>{$vo.score}</td>
                  <td>{$vo['status'] == 2 ?'已使用':'未使用'}</td>
                  <td>{$vo.utime}</td>
                  <td>{$vo.ctime}</td>
                </tr>
              </volist>
            </tbody>
          </table>
          <div class="manu"> {$page} </div>
        </div>
      </div>
    </div>
  </div>
</div>
<include file="Public:footer" /> 
<script type="text/javascript">

function changeSelect() {
	var keys = $('#keys').val();
	var userType = $('#userType').val();
    location.href = "__URL__/userList?keys=" + keys+"&userType="+userType+"&id=<?php echo $_GET['id']?>" ;
}


function confirmDelete(id){
if (confirm("确认要删除这条数据吗？")) {
       location.href="__URL__/delUser?id="+id+"&activityId=<?php echo $_GET['id']?>";
     }
}

function setUserOrder(id){
	var gorder = $('#gorder_'+id).val();
	$.ajax({

             type: "GET",

             url: "__URL__/setUserOrder?id="+id+"&gorder="+gorder,

             data: '',

             dataType: "json",

             success: function(data){
				location.replace(location.href);
                  }
		
         });
}

</script>